package org.example.atry.service.impl;






import org.example.atry.pqdao.paqdao;
import org.example.atry.service.agricultuerservicec;
import org.example.atry.util.Users;


import java.util.List;

public class serviced implements agricultuerservicec {
    private paqdao paqdao;
    public serviced() {
        this.paqdao = new paqdao();
    }
    @Override
    public List<Users> queryall() {

        return this.paqdao.queryall();
    }
    public Users queryone(Integer id){
        return this.paqdao.queryone(id);
    }
    public  List<Users>querysomesp(String name){
        return this.paqdao.querysomesp(name);
    }
    public List<Users> pageall(int pagaNum, int pagaSize){
        return this.paqdao.pageall(pagaNum, pagaSize);
    }
    public int getTotal(){
        return this.paqdao.getTotal();
    }
    public List<Users> pagesome(String name, int pagaNum, int pagaSize){
        return this.paqdao.pagesome(name, pagaNum, pagaSize);
    }
    public int geTotal(String name){
        return this.paqdao.geTotal(name);
    }
}
